using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using OpenComposite.Repository.Properties;
using System.Drawing;
using OpenComposite.EII.Repository;

namespace OpenComposite.EII.Designer.SCA
{
	public class RuleComponentSymbol : ServiceComponentSymbol
	{
		#region Initialization
		public RuleComponentSymbol()
		{
			init();
		}
		private void init()
		{
			this.BeginUpdate();

			this.BackBrushMode = BackgroundBrushMode.LinearGradient;
			this.BackLinearGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
			this.BackColor = Color.FromArgb(128, 255, 192);
			this.BackColor2 = Color.White;

			this.EndUpdate();
		}
		#endregion

		#region Public Members

		#region Properties
		#endregion

		#region Methods
		public override void PaintBackground(PaintEventArgs pe)
		{
			base.PaintBackground(pe);

			Rectangle rc = this.ClientRectangle;
			Point pt = this.PointToDesignerView(new Point(rc.X, rc.Bottom - 16));
			pe.Graphics.DrawIcon(Resources.ico_brule, pt.X, pt.Y);
		}
		#endregion

		#endregion

		#region Protected Members

		#region Variables
		#endregion

		#endregion

		#region Private Members

		#region Methods
		#endregion

		#region Event Handlers
		#endregion

		#endregion
	}
}
